package top.korori.sv.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 *
 * @author korori
 */
@Getter
@Setter
@TableName("sv_work_browse")
@ApiModel(value = "SvWorkBrowse对象", description = "")
public class SvWorkBrowse implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("浏览id")
    @TableId(value = "browse_id", type = IdType.AUTO)
    private Long browseId;

    @ApiModelProperty("被浏览的作品")
    private Long workId;

    @ApiModelProperty("浏览的用户id")
    private Long userId;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
